package fy.msg;

import com.seeyon.oainterface.impl.exportdata.MessageExporter;

public class MessageSender {

	public static void sendMsg(String user, String content, String url) {
		sendMsg(new String[] { user }, content, new String[] { url });
	}

	public static void sendMsg(String user, String content) {

		sendMsg(new String[] { user }, content, (String[]) null);
	}

	public static void sendMsg(String[] user, String content, String url) {

		sendMsg(user, content, new String[] { url });
	}

	public static void sendMsg(String[] user, String content, String[] url) {
		MessageExporter me = new MessageExporter();

		try {
			me.sendMessage(-7273032013234748168L,user, content, url);
		} catch (Exception e1) {
			e1.printStackTrace();
		}
	}

	public static void sendMsg(long[] userID, String content) {
		sendMsg(userID, content, (String[]) null);
	}

	public static void sendMsg(long[] userID, String content, String[] url) {
		MessageExporter me = new MessageExporter();
		try {
			me.sendMessage(-7273032013234748168L,userID, content, url);
		} catch (Exception e1) {
			e1.printStackTrace();
		}
	}

	public static void sendMsg(long user, String content, String url) {
		sendMsg(new long[] { user }, content, new String[] { url });
	}

	public static void sendMsg(long user, String content) {

		sendMsg(new long[] { user }, content, (String[]) null);
	}

	public static void sendMsg(long[] user, String content, String url) {

		sendMsg(user, content, new String[] { url });
	}
}
